<?
	class xl_dia_diem_da_den extends database
	{
		
		function isView($madiadiem,$manguoidung){
			$this->setQuerry("select*from diadiemdaden where MaDiaDiem = '$madiadiem' and MaNguoiDung = '$manguoidung'");
			$result = $this->loadAllRow();
			return count($result);
		}
		function themDiaDiem($madiadiem,$manguoidung)
		{
			$this->setQuerry("insert into diadiemdaden (MaDiaDiem, MaNguoiDung) values('$madiadiem','$manguoidung')");
			$result=$this->querry();
			return $result;
		}
	}
?>